/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xmlutils;

import java.io.File;

/**
 *
 * @author tiwtiger
 */
public class PDFGenerateTest {
    public static void main(String[] args){
//        //Artist
//        String xslPath = "web/xsl/artistFO.xsl";
//        String xmlPath = "web/xml/Artists.xml";
//        String output = "web/xsl/ArtistFO.fo";
//        XMLUtils.methodTrAx(xslPath, xmlPath, output);
//
//        File xmlFile = new File("web/xsl/ArtistFO.fo");
//        File pdfFile = new File("web/xsl/ArtistPDF.pdf");
//        PDFGenerating.createPDF(xmlFile, pdfFile, "");

//        //Song
//        String xslPath = "web/xsl/songFO.xsl";
//        String xmlPath = "web/xml/Songs.xml";
//        String output = "web/xsl/SongFO.fo";
//        XMLUtils.methodTrAx(xslPath, xmlPath, output);
//
//        File xmlFile = new File("web/xsl/SongFO.fo");
//        File pdfFile = new File("web/xsl/SongPDF.pdf");
//        PDFGenerating.createPDF(xmlFile, pdfFile, "");

//        //Album
//        String xslPath = "web/xsl/albumFO.xsl";
//        String xmlPath = "web/xml/Albums.xml";
//        String output = "web/xsl/AlbumFO.fo";
//        XMLUtils.methodTrAx(xslPath, xmlPath, output);
//
//        File xmlFile = new File("web/xsl/AlbumFO.fo");
//        File pdfFile = new File("web/xsl/Album.pdf");
//        PDFGenerating.createPDF(xmlFile, pdfFile, "");

        String xslPath = "web/xsl/playlistFO.xsl";
        String xmlPath = "web/xml/Playlists.xml";
        String output = "web/xsl/PlaylistFO.fo";
        XMLUtils.methodTrAx(xslPath, xmlPath, output);

        File xmlFile = new File("web/xsl/PlaylistFO.fo");
        File pdfFile = new File("web/xsl/Playlist.pdf");
        PDFGenerating.createPDF(xmlFile, pdfFile, "");
    }
}
